On the Use of Underspecified Data-Type Semantics for Type Safety in Low-Level Code

نویسندگان

  • Hendrik Tews
  • Marcus Völp
  • Tjark Weber
چکیده

In recent projects on operating-system verification, C and C++ data types are often formalized using a semantics that does not fully specify the precise byte encoding of objects. It is well-known that such an underspecified data-type semantics can be used to detect certain kinds of type errors. In general, however, underspecified data-type semantics are unsound: they assign well-defined meaning to programs that have undefined behavior according to the C and C++ language standards. A precise characterization of the type-correctness properties that can be enforced with underspecified data-type semantics is still missing. In this paper, we identify strengths and weaknesses of underspecified datatype semantics for ensuring type safety of low-level systems code. We prove sufficient conditions to detect certain classes of type errors and, finally, identify a trade-off between the complexity of underspecified data-type semantics and their type-checking capabilities.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Domain-Specific Language for Device Drivers

Device drivers have been noted as a major source of faults in operating system code [2]. Largely for efficiency, device drivers and other systems code have historically been written in low-level languages like C. Unfortunately, these languages do not provide the type safety and robustness one would expect in critical systems code. Work has been done to augment the type safety of low-level langu...

متن کامل

Safety of sodium-glucose co-transporter 2 inhibitors during Ramadan fasting: Evidence, perceptions and guidelines

Sodium-glucose co-transporter 2 (SGLT2) inhibitors are a new glucose-lowering therapy for T2DM with documented benefits on blood glucose, hypertension, weight reduction and long term cardiovascular benefit. They have an inherent osmotic diuretic effect and lead to some volume loss and possible dehydration. There is some concern about the safety of using SGLT2 inhibitors in Muslim type 2 diabete...

متن کامل

بررسی فاکتورهای مرتبط با درک علایم ایمنی در کارگران صنعتی

Background and aims: The use of safety signs is one of the common methods of Informing and alerting the workers in relation whith type and severity of hazards in the workplace, These signs use to inform a person of danger And encourage him to do the protective measures. According to this, appropriate comprehension of safety signs in workplace is very important, The purpose of this study was eva...

متن کامل

A Comparison of Seismic Safety of Steel MRF Designed According to Different Editions of Iranian Seismic Code

In this paper, efforts are made to compare the safety of steel moment resistant frames designed according to different editions of the Iranian code of Practice for seismic resistant design of buildings. Also, failure risk of a low and medium height frame which designed for high and low seismicity regions according to three editions of the code are evaluated. First, the testing cases were design...

متن کامل

Performance Evaluation of a Curved Type Vane Separator at Different Plate Spacings in the Range of 25 to 35mm Using Numerical Simulation

In this paper, the turbulent air droplet flow inside a single passage of a curved type vane separator has been studied numerically. The simulation is based on the Eulerian - Lagrangian method. For turbulent air flow calculations, a computer code was developed to solve the Reynolds Averaged Navier Stokes (RANS) equations together with the equations of Reynolds Stress Transport Model (RSTM) o...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2012